package Information;

import java.io.Serializable;
import java.util.ArrayList;

public class UserInfo implements Serializable {
    private String id;//id
    private String name;//真实姓名
    private String pname;//昵称
    private String birthday;//生日
    private String gender;//性别
    private String avatar;//头像
    private int followNum;//关注数
    private int fansNum;//粉丝数
    private ArrayList<String> followID;
    private ArrayList<String> fansID;
    private ArrayList<String> collectPostID;

    public UserInfo(){//空参构造器，默认
        this.id = "u00000";
        this.name = "";
        this.pname = "";
        this.birthday = "";
        this.gender = "";
        this.avatar = "UserAvatars/default_avatar.png";
        this.followNum = 0;
        this.fansNum = 0;
        this.followID = new ArrayList<>();
        this.fansID = new ArrayList<>();
        this.collectPostID = new ArrayList<>();
    }

    public UserInfo(String id){
        this.id = id;
        this.name = "";
        this.pname = "";
        this.birthday = "";
        this.gender = "";
        this.avatar = "UserAvatars/default_avatar.png";
        this.followNum = 0;
        this.fansNum = 0;
        this.followID = new ArrayList<>();
        this.fansID = new ArrayList<>();
        this.collectPostID = new ArrayList<>();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getFollowNum() {
        return followNum;
    }

    public void setFollowNum(int followNum) {
        this.followNum = followNum;
    }

    public int getFansNum() {
        return fansNum;
    }

    public void setFansNum(int fansNum) {
        this.fansNum = fansNum;
    }

    public ArrayList<String> getFollowID() {
        return followID;
    }

    public void setFollowID(ArrayList<String> followID) {
        this.followID = followID;
    }

    public ArrayList<String> getFansID() {
        return fansID;
    }

    public void setFansID(ArrayList<String> fansID) {
        this.fansID = fansID;
    }

    public ArrayList<String> getCollectPostID() {
        return collectPostID;
    }

    public void setCollectPostID(ArrayList<String> collectPostID) {
        this.collectPostID = collectPostID;
    }
}
